import sys
import pyautogui as pg
from time import sleep

# COLOR = 'dark'
# COLOR = 'light'
COLOR = str(sys.argv[1])

# pg.click(x=30, y=820)
# sleep 1.5s wait for starting application
sleep(1.5)

# choose application
pg.click(x=1000, y=385)
sleep(0.2)
if COLOR == 'dark':
    pg.click(x=1000, y=340)  # dark
elif COLOR == 'light':
    pg.click(x=1000, y=410)  # light
sleep(0.8)


# choose shell
pg.click(x=1000, y=490)
sleep(0.2)
if COLOR == 'dark':
    pg.click(x=1000, y=450)  # dark
elif COLOR == 'light':
    pg.click(x=1000, y=535)  # light
sleep(0.5)

# close
pg.click(x=580, y=250)
